﻿
@{
    ViewBag.Title = "OrderInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@model CGT.Infrastructure.Dto.NetworkOrderDetailDto

<section class="content-header">
    <h1 class="page-header">
        <i class="fa fa-globe"></i> 订单详情
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
        <li><a href="#" id="OrderList">订单列表</a></li>
        <li class="active">订单详情</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-default">
                <div class="box-header">
                    <h3 class="box-title">订单信息</h3>
                    @if (Model.OrderState == 1)
                    {
                    <button type="button" class="btn btn-success btn-sm" style="float:right" id="btnAudit"> 审 核 </button>
                    }
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding body-table-head">
                    <table class="table">
                        <tbody>
                            <tr>
                                <th>订单编号</th>
                                <th>下单时间</th>
                                <th>业务名称</th>
                                <th>订单状态</th>
                                <th>说明描述</th>
                            </tr>
                            <tr>
                                <td>@Model.OrderID</td>
                                <td>@Model.CreatedDate</td>
                                <td>@Model.BizTypeName</td>
                                <td><span class="label label-danger">@Model.OrderStatusName</span></td>
                                <td>@Model.OrderDesc</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-default">
                <div class="box-header">
                    <h3 class="box-title">业务信息</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding body-table-head">
                    @if (Model.BizTypeID == 1)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>车牌号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.PlateNo</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 2)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>车牌号</th>
                                    <th>原机动车号牌照片</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.PlateNo</td>
                                    <td><a href="#" onclick="ImagePreview('@Model.BeforePlateNoImageUrl')">查看</a></td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 3)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>车牌号</th>
                                    <th>是否省内</th>
                                    <th>行驶证正本照片</th>
                                    <th>行驶证副本照片</th>
                                    <th>交强险副本原件照片</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.PlateNo</td>
                                    <td>
                                        @if (Model.IsProvince == 1)
                                        {
                                            <span>是</span>
                                        }
                                        else
                                        {
                                            <span>否</span>
                                        }
                                    </td>

                                    <td><a href="#" onclick="ImagePreview('@Model.DrivingLicenceImageUrl')">查看</a></td>

                                    <td><a href="#" onclick="ImagePreview('@Model.DrivingLicenceBackImageUrl')">查看</a></td>

                                    <td><a href="#" onclick="ImagePreview('@Model.CompulsoryImageUrl')">查看</a></td>

                                </tr>

                            </tbody>

                        </table>
                    }
                    @if (Model.BizTypeID == 4)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>变更前手机号</th>
                                    <th>变更后手机号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.BeforeMobile</td>
                                    <td>@Model.AfterMobile</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 5)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>车牌号</th>
                                    <th>车辆识别代码</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.PlateNo</td>
                                    <td>@Model.VIN</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 6)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>车牌号</th>
                                    <th>交强险副本原件照片</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.PlateNo</td>
                                    <td><a href="#" onclick="ImagePreview('@Model.CompulsoryImageUrl')">查看</a></td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 7)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>体检医院</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.HospitalName</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 8)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 9)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>体检医院</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.PlateNo</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 10)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>行驶证正本照片</th>
                                    <th>行驶证副本照片</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td><a href="#" onclick="ImagePreview('@Model.DrivingLicenceImageUrl')">查看</a></td>
                                    <td><a href="#" onclick="ImagePreview('@Model.DrivingLicenceBackImageUrl')">查看</a></td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 11)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>行驶证正本照片</th>
                                    <th>行驶证副本照片</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td><a href="#" onclick="ImagePreview('@Model.DrivingLicenceImageUrl')">查看</a></td>
                                    <td><a href="#" onclick="ImagePreview('@Model.DrivingLicenceBackImageUrl')">查看</a></td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 12)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 13)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                    <th>准驾车型</th>
                                    <th>降级后准驾车型</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                    <td>@Model.LicenceClass</td>
                                    <td>@Model.LowLicenceClass</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 14)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 15)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>变更前手机号</th>
                                    <th>变更后手机号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.BeforeMobile</td>
                                    <td>@Model.AfterMobile</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                    @if (Model.BizTypeID == 16)
                    {
                        <table class="table">
                            <tbody>
                                <tr>
                                    <th>客户姓名</th>
                                    <th>身份证号</th>
                                    <th>手机号</th>
                                </tr>
                                <tr>
                                    <td>@Model.UserName</td>
                                    <td>@Model.IDNum</td>
                                    <td>@Model.UserMobile</td>
                                </tr>
                            </tbody>
                        </table>
                    }
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-default">
                <div class="box-header">
                    <h3 class="box-title">收件人信息</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding body-table-head">
                    <table class="table">
                        <tbody>
                            <tr>
                                <th>收件人姓名</th>
                                <th>手机号</th>
                                <th>邮寄地址</th>
                            </tr>
                            <tr>
                                <td>@Model.MailUserName</td>
                                <td>@Model.MailUserMobile</td>
                                <td>@Model.MailProvinceName @Model.MailCityName @Model.MailAddress</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-default">
                <div class="box-header">
                    <h3 class="box-title">支付信息</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding body-table-head">
                    <table class="table">
                        <tbody>
                            <tr>
                                <th>财务科目</th>
                                <th>金额</th>
                                <th>支付状态</th>
                                <th>支付时间</th>
                                <th>支付平台单号</th>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>

</section>
@section scriptsBottom{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#OrderList").click(function () {
                history.go(-1);
            });

            $("#btnAudit").click(function () {
                var url = '@Url.Action("OrderAudit", "Order")?orderId='+@Model.OrderID;
                BMCW.showTopLayer("订单审核", url, 630, 338);
            });
        });

        function ImagePreview(imgurl) {
            window.open("ImagePreview?imgurl=" + imgurl);
        }

        function initData()
        {
            location.reload();
        }
    </script>
}

